// import $axios from './service';
/* const getDeviceActivities = async (deviceProps) => {
    const deviceSerialNumber = deviceProps.serialNumber || deviceProps.SerialNumber;
    const deviceModelName = deviceProps.modelName || deviceProps.ModelName;
    const response = await $axios.get(`/applications/${$nuxt.$store.state.user.appID}/devices/${deviceSerialNumber}/activities?modelName=${deviceModelName}`);
    return response.data.Activities;
}

const cancelActivity = async (cancelProps) => {
    const response = await $axios.patch(`/applications/${$nuxt.$store.state.user.appID}/devices/${cancelProps.DeviceId}/activities/${cancelProps.Id}`, cancelProps.RequestBody);
    return response.data.Activity;
} */

const cancelActivity = () => {
    // 当前response返回的是一个promise；
    const response = window.$axios.get('../../static/test.json');
    return response;
}

export default {
    cancelActivity
}
